package org.hxyjs.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Prizetype implements Serializable {
    private String prino;

    private String priname;

    private String pridescribe;

    private Integer pristate;

    private static final long serialVersionUID = 1L;

    public String getPrino() {
        return prino;
    }

    public void setPrino(String prino) {
        this.prino = prino;
    }

    public String getPriname() {
        return priname;
    }

    public void setPriname(String priname) {
        this.priname = priname;
    }

    public String getPridescribe() {
        return pridescribe;
    }

    public void setPridescribe(String pridescribe) {
        this.pridescribe = pridescribe;
    }

    public Integer getPristate() {
        return pristate;
    }

    public void setPristate(Integer pristate) {
        this.pristate = pristate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Prizetype other = (Prizetype) that;
        return (this.getPrino() == null ? other.getPrino() == null : this.getPrino().equals(other.getPrino()))
            && (this.getPriname() == null ? other.getPriname() == null : this.getPriname().equals(other.getPriname()))
            && (this.getPridescribe() == null ? other.getPridescribe() == null : this.getPridescribe().equals(other.getPridescribe()))
            && (this.getPristate() == null ? other.getPristate() == null : this.getPristate().equals(other.getPristate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPrino() == null) ? 0 : getPrino().hashCode());
        result = prime * result + ((getPriname() == null) ? 0 : getPriname().hashCode());
        result = prime * result + ((getPridescribe() == null) ? 0 : getPridescribe().hashCode());
        result = prime * result + ((getPristate() == null) ? 0 : getPristate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", prino=").append(prino);
        sb.append(", priname=").append(priname);
        sb.append(", pridescribe=").append(pridescribe);
        sb.append(", pristate=").append(pristate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}